const baseCRUD = require('./helper/crud')
const { generateUUID } = require('./helper/uuid')

const Base = baseCRUD('sys_user')

// 创建角色
function create(data, operator) {
  const id = generateUUID()
  data.id = id
  return Base.create(data, operator)
}

module.exports = {
  ...Base,
  create
}
